<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
	<head>
		<title>注册信息</title>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<meta http-equiv="Cache-Control" content="no-store" />
		<meta http-equiv="Pragma" content="no-cache" />
		<meta http-equiv="Expires" content="0" />
		<link href="<c:url value='/css/reset-fonts-grids.css'/>" type="text/css" rel="stylesheet">
		<link href="<c:url value='/css/base.css'/>" type="text/css" rel="stylesheet">
		<script src="<c:url value='/js/base.js'/>" type="text/javascript"></script>
		<style type="text/css">
		body {
			min-height:570px;
			_height:570px;
		}
		</style>
	</head>
	<body style="background-color:	#D7E7DD;">
		<div id="doc3" class="yui-t7">
			<div id="hd" style="text-align:center;">
				<br/><br/><br/>
				<p style="font-size:1.5em;font-weight:bold;">
					注册信息
				</p>
			</div>
			<div id="bd" style="padding:10px 50px;">
				<div class="yui-g">
					<%@ include file="/common/messages.jsp"%>
					<div style="text-align:right">
						<a href="skosite/index.jsp">返回招募首页</a>
					</div>
					<html:form action="/register.do" styleId="mainForm" method="POST">
						<input type="hidden" name="method" class="method" value="save" />
						<table align="center" class="table-layout">
							<tr class="tr-thead">
								<th colspan="2">注册信息</th>
							</tr>
							<tr class="tr-odd">
								<td class="td-label">
									姓名
								</td>
								<td>
									<html:text property="loginName" styleId="loginName" />&nbsp;&nbsp;<span style="color:red;">*</span>&nbsp;&nbsp;<span style="color:#AAA;">6-20个字符</span>
								</td>
							</tr>
							<tr class="tr-even">
								<td class="td-label">
									密码
								</td>
								<td>
									<html:password property="loginPassword" styleId="loginPassword" />&nbsp;&nbsp;<span style="color:red;">*</span>&nbsp;&nbsp;<span style="color:#AAA;">6-20个字符</span>
								</td>
							</tr>
							<tr class="tr-odd">
								<td class="td-label">
									重复输入密码
								</td>
								<td>
									<input type="password" id="password2" onblur="checkPassword();" />&nbsp;&nbsp;<span style="color:red;">*</span>&nbsp;&nbsp;<span id="m2" style="color:#F00;display:none">两次密码不匹配</span>
								</td>
							</tr>
							<tr class="tr-even">
								<td class="td-label">
									昵称
								</td>
								<td>
									<html:text property="otherName" />
								</td>
							</tr>
							<tr class="tr-odd">
								<td class="td-label">
									邮箱
								</td>
								<td>
									<html:text property="email" />&nbsp;&nbsp;<span style="color:red;">*</span>
								</td>
							</tr>
						</table>
						<br />
						<div class="center-opertion">
							<html:submit styleClass="button">提交</html:submit>
							<html:cancel styleClass="button">取消</html:cancel>
						</div>
					</html:form>
				</div>
			</div>
		</div>
		<script>
		function checkPassword(){
			_g("m2").style.display="none";
			var p=_g("loginPassword");
			var rp = _g("password2");
			if(p.value == null || p.value.length < 1
			|| rp.value == null || rp.value.length < 1
			|| p.value != rp.value)
				_g("m2").style.display="";
		}
		</script>
	</body>
</html>
